<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/bootstrap.js" type="text/javascript"></script>
    <script src="js/jsrender.js" type="text/javascript"></script>
    <script src="js/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            if(localStorage.getItem("token")==null){
                window.location.href="login.html"
            }
            $("#exit").click(function () {
                $.ajax({
                    url:GC.bctx + "exit",//后端请求映射路径
                    type:"GET",
                    headers: {"Authorization": localStorage.getItem("token")},
                    success:function (r) {
                        if(r.successed){
                            //移除本地token
                            localStorage.removeItem("token")
                            localStorage.removeItem("account")
                            localStorage.removeItem("position")
                            alert(r.message)
                            window.location.href="login.html"

                        }else{
                            alert(r.message)
                            window.location.href="login.html"

                        }
                    }
                })
            })
        })
    </script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#example-navbar-collapse">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="content.html">颐养中心</a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        客户管理 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="listLivein.html" target="main">入住管理</a></li>
                        <li><a href="listGoout.html" target="main">外出管理</a></li>
                        <li><a href="customers.html" target="main">客户信息管理</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        床位管理 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="listBed.html" target="main">🛏床位管理</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        康复管理 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="recoveryRegisters.html" target="main">康复登记管理</a></li>
                        <li><a href="recoveryTracks.html" target="main">康复跟踪管理</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        膳食管理 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="dish.html" target="main">膳食管理</a></li>
                        <li><a href="dishCalender.html" target="main">膳食统计管理</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            护理管理 <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="nursingContent.html" target="main">护理内容</a></li>
                            <li><a href="nursingLevels.html" target="main">护理级别管理</a></li>
                            <li><a href="nursingRecord.html" target="main">护理记录管理</a></li>
                            <li><a href="nursingPlan.html" target="main">护理计划管理</a></li>
                            <li><a href="medicationrecords.html" target="main">用药记录管理</a></li>
                        </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        护士站管理 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="cares.html" target="main">服务对象设置</a></li>
                        <li><a href="workPlans.html" target="main">工作计划</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        用户管理 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="nurses.html" target="main">护士管理</a></li>
                        <li><a href="managers.html" target="main">用户管理</a></li>
                    </ul>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="updateManager.html" id="managerdetail" target="main">用户</a></li>
                <li><a href="#" id="exit">注销</a></li>
            </ul>
        </div>
    </div>
</nav>
<div class="col-sm-11">
    <iframe name="main" id="main" src="content.html" width="100%" height="700px" frameborder="0" scrolling="yes"
    allowtransparency="true"></iframe>
</div>
</body>
</html>